import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
const router = new VueRouter({
  mode: 'hash',  // 或 'hash'
  routes: [
    {
      path: '/',
      name: 'HomeIndex',
      component: () => import('@/views/Home/index.vue') // 懒加载
    },
    {
      path: '/about',
      name: 'RegistrationIndex',
      component: () => import('@/views/Registration/index.vue')
    },
    {
      path: '/registered',
      name: 'RegisteredIndex',
      component: () => import('@/views/Registered/index.vue'),
    },
    {
      path: '/login',
      name: 'LoginIndex',
      component: () => import('@/views/Login/index.vue'),
    },
  ]
});
export default router;